home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / tex / style / misc / underlin.sty (.txt) < prev    next >
LaTeX Document  |  1995-11-25  |  5KB  |  144 lines

  1. \def\fileversion{1.0a}
  2. \def\filedate{89/05/10}
  3. \def\docdate{89/05/17}
  4. \iffalse
  5. % Style-option `underlin' to use with LaTeX v2.09
  6. % Copyright (C) 1987, 1989 Rainer Schoepf, all rights reserved.
  7. % Copying of this file is authorized only if either
  8. % (1) you make absolutely no changes to your copy, including name, or
  9. % (2) if you do make changes, you name it something other than
  10. %     underlin.sty.
  11. % This restriction helps ensure that all styles developed at Mainz
  12. % are identical.
  13. % Please send bug reports to:
  14. %                          R.~Sch\"opf
  15. %                Institut f\"ur Physik
  16. %                          JoGu Universit"at
  17. %                          D-6500 Mainz
  18. %                          Federal Republic of Germany
  19. %                 Bitnet:  <SCHOEPF@DMZNAT51>
  20. % \title{Two {\sf pagestyles} for underlining headers\thanks{This file
  21. %        has version number \fileversion, last
  22. %        revised \filedate, documentation dated \docdate.}}
  23. % \author{Rainer Sch\"opf \\
  24. %         Institut f\"ur Physik \\
  25. %         Johannes Gutenberg Universit\"at Mainz}
  26. % \date{\quad}
  27. % \maketitle
  28. % \begin{abstract}
  29. %   This style option implements two new {\sf pagestyles}
  30. %   {\tt underline} and {\tt myunderline} that are similar
  31. %   to the standard {\tt headings} and {\tt myheadings}
  32. %   {\sf pagestyles} but provide a horizontal line just below
  33. %   the head line.
  34. % \end{abstract}
  35. % The purpose of this style option file is to provide a way to
  36. % underline a running head.
  37. % This is done by redefining the \verb+\@evenhead+ and \verb+\@oddhead+
  38. % macros.
  39. % To understand this you must know that whenever a given pagestyle
  40. % (say `xxx') is selected by a \verb+\pagestyle{xxx}+ command the
  41. % macro \verb+\ps@xxx+ is executed.
  42. % Therefore we define a macro \verb+\ps@underline+ which is called
  43. % when you say \verb+\pagestyle{underline}+.
  44. % To provide for a rule with user-defined headings we also define
  45. % the pagestyle `myunderline' , i.e.\ the macro \verb+\ps@myunderline+.
  46. % \StopEventually{}
  47. % As always we begin by identifying the latest version of this file
  48. % on the VDU an in the transcript file.
  49. %    \begin{macrocode}
  50. \typeout{Style-Option: `underline'
  51.    \fileversion \space <\filedate>  (RmS)}
  52. \typeout{Documentation dated
  53.    \@spaces \@spaces \space\space\space <\docdate>  (RmS)}
  54. %    \end{macrocode}
  55. % \begin{macro}{\ps@underline}
  56. %    The first thing the macro \verb+\ps@underline+
  57. %    does is to call
  58. %    \verb+\ps@headings+ to set up everything like the `headings'
  59. %    pagestyle does.
  60. %    Here we do not need to distinguish onesided and twosided
  61. %    printing since this is already done correctly by
  62. %    \verb+\ps@headings+.
  63. %    \begin{macrocode}
  64. \def\ps@underline{\ps@headings
  65. %    \end{macrocode}
  66. %    Then we redefine \verb+\@evenhead+. The first part is a copy of
  67. %    the definition in \verb+\ps@headings+.
  68. %    This has the advantage that this style option works with
  69. %    document styles `article', `report', and `book'.
  70. %    \begin{macrocode}
  71.   \def\@evenhead{\rm \thepage\hfil \sl\leftmark\null
  72. %    \end{macrocode}
  73. %    Additionally we include a \verb+\vadjust+ primitive. The effect of
  74. %    this primitive is to add its argument after the current
  75. %    \verb+\hbox+ to the enclosing vertical list.
  76. %    \begin{macrocode}
  77.     \vadjust{\vskip .3ex\hrule}}%
  78. %    \end{macrocode}
  79. %    The \verb+\@oddhead+ macro is constructed
  80. %    analogously.\footnote{{\tt\bslash null} is defined to be
  81. %                          {\tt\bslash hbox\char`\{\char`\}} in
  82. %                          {\tt lplain.tex}.}
  83. %    \begin{macrocode}
  84.   \def\@oddhead{\null\sl \rightmark \hfil \rm\thepage
  85.     \vadjust{\vskip .3ex\hrule}}}
  86. %    \end{macrocode}
  87. % \end{macro}
  88. % \begin{macro}{\ps@myunderline}
  89. %    The macro \verb+\ps@myunderline+ for underlining user defined
  90. %    running heads is constructed analogously.
  91. %    \begin{macrocode}
  92. \def\ps@myunderline{\ps@myheadings
  93.   \def\@oddhead{\null\sl \rightmark \hfil
  94.     \rm\thepage\vadjust{\vskip .3ex\hrule}}%
  95.   \def\@evenhead{\rm\thepage\hfil\sl \leftmark \null
  96.     \vadjust{\vskip .3ex\hrule}}}
  97. %    \end{macrocode}
  98. % \end{macro}
  99. % Remarks, comments, complaints, etc. should be sent to: \\[3mm]
  100. % Rainer Sch\"opf \\
  101. % Institut f\"ur Physik \\
  102. % Universit\"at Mainz \\
  103. % Staudinger Weg 7 \\
  104. % D-6500 Mainz \\
  105. % West Germany \\
  106. % \tt <SCHOEPF@DMZNAT51.BITNET>
  107. % \Finale
  108. \endinput
  109. Upper-case    ABCDEFGHIJKLMNOPQRSTUVWXYZ
  110. Lower-case    abcdefghijklmnopqrstuvwxyz
  111. Digits        0123456789
  112. Exclamation   !
  113. Double quote  "
  114. Hash (number) #
  115. Dollar        $
  116. Percent       %
  117. Ampersand     &
  118. Acute accent  '
  119. Left paren    (
  120. Right paren   )
  121. Asterisk      *
  122. Plus          +
  123. Comma         ,
  124. Minus         -
  125. Point         .
  126. Solidus       /
  127. Colon         :
  128. Semicolon     ;
  129. Less than     <
  130. Equals        =
  131. Greater than  >
  132. Question mark ?
  133. Commercial at @
  134. Left bracket  [
  135. Backslash     \
  136. Right bracket ]
  137. Circumflex    ^
  138. Underscore    _
  139. Grave accent  `
  140. Left brace    {
  141. Vertical bar  |
  142. Right brace   }
  143. Tilde         ~
  144.